package com.cmc.cloud.cmclink.doc.vo.manifestvo.manifestcntr;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 舱单箱信息分页 Request VO
 *
 * @author chenzheng
 */
@Schema(description = "管理后台 - 舱单箱信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ManifestCntrPageReqVO extends PageParam {

    @Schema(description = "外键", example = "7362")
    private Long manifestId;

    @Schema(description = "箱号")
    private String cntrNo;

    @Schema(description = "铅封号")
    private String sealNo;

    @Schema(description = "箱型", example = "2")
    private String cntrType;

    @Schema(description = "尺寸")
    private String cntrSize;

    @Schema(description = "箱内货物件数")
    private Long quantity;

    @Schema(description = "箱内货物毛重")
    private BigDecimal grossWeight;

    @Schema(description = "箱内货物体积")
    private BigDecimal measurement;

    @Schema(description = "箱皮重")
    private BigDecimal cntrTare;

    @Schema(description = "拼箱标记(同航次 同箱号就算拼)")
    private Boolean lcl;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
